<!DOCTYPE html>
<html xmlns:th="http://www.w3.org/1999/xhtml">
<meta charset="utf-8">
<head th:include="include :: header"></head>

<style>
    .upload{
        position: relative;
    }
    .upImg{
        width: 100px;
        height: 100px;
    }
    .closeUpload{
        width: 20px;
        height: 20px;
        position: absolute;
        top: 0;
        right: 0;
    }
</style>

<body>


<div class="layui-fluid mt2">
    <form class="layui-form">

        <div class="layui-form-item">
            <label class="layui-form-label">上传合同</label>
            <div class="layui-input-block">
                <button type="button" class="layui-btn" id="contract">
                    <i class="layui-icon">&#xe67c;</i>上传合同
                </button>
                <!--				<p class="layui-inline" style="margin-left: 25px;font-size: 12px;color: red">请上传PDF文件</p>-->
                <div class="layui-form-item">
                    <div class="layui-inline layui-hide upload">
                        <img class="upImg" src="">
                        <img class="closeUpload" src="../../img/close.png">
                    </div>
                    <a href="#" class="layui-hide" target="_blank" id="preview" style="color: #0d78fc">预览</a>
                </div>

            </div>

            <input type="hidden" name="pdfPath" lay-verify="pdfPath" autocomplete="off" placeholder="请输入" class="layui-input">

        </div>

        <div class="layui-form-item">
            <label class="layui-form-label">合同名称</label>
            <div class="layui-input-block">
                <input type="text" name="name" lay-verify="name" autocomplete="off" placeholder="请输入" class="layui-input">
            </div>
        </div>

        <div class="layui-form-item">
            <label class="layui-form-label">合同类型</label>
            <div class="layui-input-block">
                <div id="contractState"></div>
            </div>
        </div>

        <div class="layui-form-item">
            <label class="layui-form-label">合同版本</label>
            <div class="layui-input-block">
                <input type="text" name="version" lay-verify="version" autocomplete="off" placeholder="请输入" class="layui-input">
            </div>
        </div>

        <div class="layui-form-item  layui-flow-more">
            <div class="layui-inline">
                <button type="submit" class="layui-btn" lay-submit lay-filter="submit">立即提交</button>
            </div>
        </div>

    </form>
</div>

<div th:include="include::footer"></div>
<script type="text/javascript" src="/js/xmSelect.js"></script>
<script type="text/javascript" src="/js/webJs/jzweb/jazSysContractTemplate/add.js"></script>

</body>
</html>
